<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
  </head>
  <body>
    <form id="form1" method="post" enctype="multipart/form-data" action="./upload_file.php">
      <label>选择本地文件:
        <input type="file" name="file"  />
      </label>
      <br />
      <input type="submit" name="submit" value="Submit" />
    </form>
  </body>
  </html>